package Study;

public class Adapter implements Translator {
    private Speaker speaker;
    public Adapter(Speaker speaker){
        this.speaker = speaker;
    }
    @Override
    public String translate() {
        String result = speaker.speak();
        return result;
    }
}
